
<template>
	<view class="login_page">
		<view class="content-view">
			<button @click="buttonEvent">点击登录</button>
		</view>
		<view class="botton-safe-region"></view>
	</view>
</template>

<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app';
	
	onLoad((option)=>{
		console.log(option)
	})
	const buttonEvent = ()=>{
		uni.$emit("login-notice",
		{
			name:"汪明",
			age:30,
			id:0
		})
		uni.navigateBack()
	}
</script>
<style lang="scss">
	.login_page {
		display: flex;
		flex-direction: column;
		background-color: red;
		height: 100%;
		width: 100%;
		.content-view{
			flex: 1;
			width: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			background-color: aqua;
		}
		.botton-safe-region{
			height: env(safe-area-inset-bottom);
			width: 100%;
			background-color: green;
		}
	}
</style>
